package com.Darkra1Zzz.dao;

import com.Darkra1Zzz.entity.Song;
import com.Darkra1Zzz.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SongDao {
    public int updatePlaycountByid(@Param("playcount") int playcount,
                                   @Param("songid") int songid);

    public List<Song> querySongs();

    public List<Song> querySongsByCondition(
            @Param("name") String name,
            @Param("singer") String singer,
            @Param("type") String type,
            @Param("currentPage")Integer currentPage,
            @Param("pageSize")Integer pageSize);

    public int countAllSong(Song song);

}
